package com.departmentstore.service;

import com.departmentstore.dto.DepartmentProductDTO;
import com.departmentstore.entity.DepartmentProduct;
import java.util.List;

public interface DepartmentProductService {
    // 创建新的部门产品关联
    DepartmentProduct createDepartmentProduct(DepartmentProduct departmentProduct);
    
    // 更新部门产品关联信息
    DepartmentProduct updateDepartmentProduct(DepartmentProduct departmentProduct);
    
    // 删除部门产品关联
    void deleteDepartmentProduct(String id);
    
    // 根据ID获取部门产品关联
    DepartmentProduct getDepartmentProductById(String id);
    
    // 获取所有部门产品关联
    List<DepartmentProductDTO> getAllDepartmentProducts();
    
    // 根据部门ID获取关联列表
    List<DepartmentProduct> getDepartmentProductsByDepartmentId(String departmentId);
    
    // 根据产品ID获取关联列表
    List<DepartmentProduct> getDepartmentProductsByProductId(String productId);
    
    // 根据部门ID和产品ID获取关联
    DepartmentProduct getDepartmentProductByDepartmentIdAndProductId(String departmentId, String productId);
} 